package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.loan.LoanCategory;
import com.ms.p2p.provider.LoanCategoryProvider;
import com.ms.p2p.service.impl.LoanCategoryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class LoanCategoryProviderImpl implements LoanCategoryProvider {
    @Autowired
    LoanCategoryServiceImpl loanCategoryService;

    public int insert(LoanCategory loanCategory) {
        return loanCategoryService.insert(loanCategory);
    }

    public int delete(int id) {
        return loanCategoryService.delete(id);
    }

    public int update(LoanCategory loanCategory) {
        return loanCategoryService.update(loanCategory);
    }

    public LoanCategory findById(String id) {
        return loanCategoryService.findById(id);
    }

    public List<LoanCategory> findAll() {
        return loanCategoryService.findAll();
    }
}
